<?php
class SearchAction extends CommonAction {
    public function index(){
		$keyword=$this->_get('keywords');
		$newsModel=D('News');
		$data=$newsModel->___list('n','c','m',"n.title like '%{$keyword}%' and n.site_id=".__RELATEID__,'n.sort',15);
		$this->assign($data);
		$this->display();
    }

}